package com.sasis.model;
// Generated 2007-5-21 11:38:43 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="PASSENGER_NOTIFY_INFO"
 *     
 */

public class PassengerNotifyInfo extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id; 
    private Integer passengerInfoId;
    private Integer flightAdjustInfoId;
    private String notifyFlag;
    private String reason;
    private String transferFlag;
    private String transferFlightNum;
    private Timestamp transferFlightDate; 
    
    //add by liuhao 2007-8-20
    private String chineseName;
    private String icsNumber;
    private String etNumber;
    private String mobile;
    private String flightNum;
    private Date flightDate;
    //departureAirport,s name
    private String dan;
    //arrivalAirport,s name
    private String aan;
    private String departureAirport;
    private String arrivalAirport;
    private Timestamp createTime;
    private Timestamp startCreateTime;
    private Timestamp endCreateTime;

//  pi_id is passengerInfoId from table of PassengerInfo
    private Integer pi_id;
    private String[] pi_ids;
    
    //private String[] ids;


    // Constructors

    /** default constructor */
    public PassengerNotifyInfo() {
    }

    
    /** full constructor */
    public PassengerNotifyInfo(Integer passengerInfoId, String notifyFlag, String reason, String transferFlag, String transferFlightNum, Timestamp transferFlightDate) {
        this.passengerInfoId = passengerInfoId;
        this.notifyFlag = notifyFlag;
        this.reason = reason;
        this.transferFlag = transferFlag;
        this.transferFlightNum = transferFlightNum;
        this.transferFlightDate = transferFlightDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="PASSENGER_INFO_ID"
     *             length="22"
     *         
     */

    public Integer getPassengerInfoId() {
        return this.passengerInfoId;
    }
    
    public void setPassengerInfoId(Integer passengerInfoId) {
        this.passengerInfoId = passengerInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="NOTIFY_FLAG"
     *             length="1"
     *         
     */

    public String getNotifyFlag() {
        return this.notifyFlag;
    }
    
    public void setNotifyFlag(String notifyFlag) {
        this.notifyFlag = notifyFlag;
    }
    /**       
     *      *            @hibernate.property
     *             column="REASON"
     *             length="256"
     *         
     */

    public String getReason() {
        return this.reason;
    }
    
    public void setReason(String reason) {
        this.reason = reason;
    }
    /**       
     *      *            @hibernate.property
     *             column="TRANSFER_FLAG"
     *             length="1"
     *         
     */

    public String getTransferFlag() {
        return this.transferFlag;
    }
    
    public void setTransferFlag(String transferFlag) {
        this.transferFlag = transferFlag;
    }
    /**       
     *      *            @hibernate.property
     *             column="TRANSFER_FLIGHT_NUM"
     *             length="8"
     *         
     */

    public String getTransferFlightNum() {
        return this.transferFlightNum;
    }
    
    public void setTransferFlightNum(String transferFlightNum) {
        this.transferFlightNum = transferFlightNum;
    }
    /**       
     *      *            @hibernate.property
     *             column="TRANSFER_FLIGHT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getTransferFlightDate() {
        return this.transferFlightDate;
    }
    
    public void setTransferFlightDate(Timestamp transferFlightDate) {
        this.transferFlightDate = transferFlightDate;
    }
    
    /**
     */
    public String getEtNumber() {
    	return etNumber;
    }

    public void setEtNumber(String etNumber) {
    	this.etNumber = etNumber;
    }


    /**
     */
    public String getIcsNumber() {
    	return icsNumber;
    }

    public void setIcsNumber(String icsNumber) {
    	this.icsNumber = icsNumber;
    }


    /**
     */
    public String getMobile() {
    	return mobile;
    }
    public void setMobile(String mobile) {
    	this.mobile = mobile;
    }


    /**
     */
    public String getChineseName() {
    	return chineseName;
    }
    /**
     */    
    public void setChineseName(String chineseName) {
    	this.chineseName = chineseName;
    } 

    public Integer getFlightAdjustInfoId() {
    	return flightAdjustInfoId;
    }

    public void setFlightAdjustInfoId(Integer flightAdjustInfoId) {
    	this.flightAdjustInfoId = flightAdjustInfoId;
    }
    public Integer getPi_id() {
    	return pi_id;
    }
    public void setPi_id(Integer pi_id) {
    	this.pi_id = pi_id;
    }
    public String[] getPi_ids() {
    	return pi_ids;
    }

    public void setPi_ids(String[] pi_ids) {
    	this.pi_ids = pi_ids;
    }
    public Date getFlightDate() {
    	return flightDate;
    }


    public void setFlightDate(Date flightDate) {
    	this.flightDate = flightDate;
    }


    public String getFlightNum() {
    	return flightNum;
    }


    public void setFlightNum(String flightNum) {
    	this.flightNum = flightNum;
    }
	public String getAan() {
		return aan;
	}

	public void setAan(String aan) {
		this.aan = aan;
	}

	public String getDan() {
		return dan;
	}

	public void setDan(String dan) {
		this.dan = dan;
	}

	public String getArrivalAirport() {
		return arrivalAirport;
	}


	public void setArrivalAirport(String arrivalAirport) {
		this.arrivalAirport = arrivalAirport;
	}


	public String getDepartureAirport() {
		return departureAirport;
	}


	public void setDepartureAirport(String departureAirport) {
		this.departureAirport = departureAirport;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getEndCreateTime() {
		return endCreateTime;
	}


	public void setEndCreateTime(Timestamp endCreateTime) {
		this.endCreateTime = endCreateTime;
	}


	public Timestamp getStartCreateTime() {
		return startCreateTime;
	}


	public void setStartCreateTime(Timestamp startCreateTime) {
		this.startCreateTime = startCreateTime;
	}
   
//    public String[] getIds() {
//    	return ids;
//    }
//    /**
//     */
//    public void setIds(String[] ids) {
//    	this.ids = ids;
//    }


    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("passengerInfoId").append("='").append(getPassengerInfoId()).append("' ");			
      buffer.append("notifyFlag").append("='").append(getNotifyFlag()).append("' ");			
      buffer.append("reason").append("='").append(getReason()).append("' ");			
      buffer.append("transferFlag").append("='").append(getTransferFlag()).append("' ");			
      buffer.append("transferFlightNum").append("='").append(getTransferFlightNum()).append("' ");			
      buffer.append("transferFlightDate").append("='").append(getTransferFlightDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof PassengerNotifyInfo) ) return false;
		 PassengerNotifyInfo castOther = ( PassengerNotifyInfo ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getPassengerInfoId()==castOther.getPassengerInfoId()) || ( this.getPassengerInfoId()!=null && castOther.getPassengerInfoId()!=null && this.getPassengerInfoId().equals(castOther.getPassengerInfoId()) ) )
 && ( (this.getNotifyFlag()==castOther.getNotifyFlag()) || ( this.getNotifyFlag()!=null && castOther.getNotifyFlag()!=null && this.getNotifyFlag().equals(castOther.getNotifyFlag()) ) )
 && ( (this.getReason()==castOther.getReason()) || ( this.getReason()!=null && castOther.getReason()!=null && this.getReason().equals(castOther.getReason()) ) )
 && ( (this.getTransferFlag()==castOther.getTransferFlag()) || ( this.getTransferFlag()!=null && castOther.getTransferFlag()!=null && this.getTransferFlag().equals(castOther.getTransferFlag()) ) )
 && ( (this.getTransferFlightNum()==castOther.getTransferFlightNum()) || ( this.getTransferFlightNum()!=null && castOther.getTransferFlightNum()!=null && this.getTransferFlightNum().equals(castOther.getTransferFlightNum()) ) )
 && ( (this.getTransferFlightDate()==castOther.getTransferFlightDate()) || ( this.getTransferFlightDate()!=null && castOther.getTransferFlightDate()!=null && this.getTransferFlightDate().equals(castOther.getTransferFlightDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getPassengerInfoId() == null ? 0 : this.getPassengerInfoId().hashCode() );
         result = 37 * result + ( getNotifyFlag() == null ? 0 : this.getNotifyFlag().hashCode() );
         result = 37 * result + ( getReason() == null ? 0 : this.getReason().hashCode() );
         result = 37 * result + ( getTransferFlag() == null ? 0 : this.getTransferFlag().hashCode() );
         result = 37 * result + ( getTransferFlightNum() == null ? 0 : this.getTransferFlightNum().hashCode() );
         result = 37 * result + ( getTransferFlightDate() == null ? 0 : this.getTransferFlightDate().hashCode() );
         return result;
   }










































}
